<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld"%>
<%@ taglib prefix="fn" uri="/WEB-INF/fn.tld" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'list.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" rev="stylesheet"
			href="<%=basePath%>css/Listing_Index.css" type="text/css">
		<link rel="stylesheet" rev="stylesheet"
			href="<%=basePath%>css/admin-v1.css" type="text/css">
	</head>
	<body>
		<div class="admin_right_title">
			<h1>
				租金信息
			</h1>
		</div>
	<div class="opera_tools">
		<a href="<%=basePath%>/admin/rent/get.do">新增</a><span class="noify">(慎重新建或修改)</span>
	</div>
	<c:if test="${fn:length(list)!=0}">
		<table class="table_1">
			<thead>
				<tr>
					<th>
						标号
					</th>
					<th>
						名称
					</th>
					<th>
						编码
					</th>
				
					<th>删除</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="obj" varStatus="count" items="${list}">
					<tr>
						<td style="width:20%;">${count.count}</td>
						<td style="width:40%;"><a href="<%=basePath%>/admin/rent/get.do?id=${obj.id}">${obj.name}</a></td>
						<td>${obj.code}</td>	
						<td><a href="<%=basePath%>/admin/rent/delete.do?id=${obj.id}">删除</a></td>				
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</c:if>
	</body>
</html>
